<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="image.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="image.examples.html">范例</a></div>
 <div class="up"><a href="book.image.html">GD</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="image.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.gd-version">
    <strong><code>GD_VERSION</code></strong>
    (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     The GD version PHP was compiled against.
     (Available as of PHP 5.2.4)
    </span>
   </dd>

  

  
   <dt id="constant.gd-major-version">
    <strong><code>GD_MAJOR_VERSION</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     The GD major version PHP was compiled against.
     (Available as of PHP 5.2.4)
    </span>
   </dd>

  

  
   <dt id="constant.gd-minor-version">
    <strong><code>GD_MINOR_VERSION</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     The GD minor version PHP was compiled against.
     (Available as of PHP 5.2.4)
    </span>
   </dd>

  

  
   <dt id="constant.gd-release-version">
    <strong><code>GD_RELEASE_VERSION</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     The GD release version PHP was compiled against.
     (Available as of PHP 5.2.4)
    </span>
   </dd>

  

  
   <dt id="constant.gd-extra-version">
    <strong><code>GD_EXTRA_VERSION</code></strong>
    (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     The GD &quot;extra&quot; version (beta/rc..) PHP was compiled against.
     (Available as of PHP 5.2.4)
    </span>
   </dd>

  

  
   <dt id="constant.gd-bundled">
    <strong><code>GD_BUNDLED</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     When the bundled version of GD is used this is 1 otherwise 
     its set to 0.
    </span>
   </dd>

  

  
   <dt id="constant.img-gif">
    <strong><code>IMG_GIF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-jpg">
    <strong><code>IMG_JPG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-jpeg">
    <strong><code>IMG_JPEG</code></strong> 
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      This constant has the same value as <strong><code>IMG_JPG</code></strong>
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.img-png">
    <strong><code>IMG_PNG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-wbmp">
    <strong><code>IMG_WBMP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-xpm">
    <strong><code>IMG_XPM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used as a return value by <span class="function"><a href="function.imagetypes.html" class="function">imagetypes()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-color-tiled">
    <strong><code>IMG_COLOR_TILED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special color option which can be used in stead of color allocated with
     <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
     <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-color-styled">
    <strong><code>IMG_COLOR_STYLED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special color option which can be used in stead of color allocated with
     <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
     <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-color-brushed">
    <strong><code>IMG_COLOR_BRUSHED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special color option which can be used in stead of color allocated with
     <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
     <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-color-styledbrushed">
    <strong><code>IMG_COLOR_STYLEDBRUSHED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special color option which can be used in stead of color allocated with
     <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
     <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-color-transparent">
    <strong><code>IMG_COLOR_TRANSPARENT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special color option which can be used in stead of color allocated with
     <span class="function"><a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a></span> or
     <span class="function"><a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a></span>
    </span>
   </dd>

  
  
   <dt id="constant.img-arc-rounded">
    <strong><code>IMG_ARC_ROUNDED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      This constant has the same value as <strong><code>IMG_ARC_PIE</code></strong>
     </p>
    </p></blockquote>
   </dd>

  
  
   <dt id="constant.img-arc-pie">
    <strong><code>IMG_ARC_PIE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-arc-chord">
    <strong><code>IMG_ARC_CHORD</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-arc-nofill">
    <strong><code>IMG_ARC_NOFILL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-arc-edged">
    <strong><code>IMG_ARC_EDGED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A style constant used by the <span class="function"><a href="function.imagefilledarc.html" class="function">imagefilledarc()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-gd2-raw">
    <strong><code>IMG_GD2_RAW</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A type constant used by the <span class="function"><a href="function.imagegd2.html" class="function">imagegd2()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-gd2-compressed">
    <strong><code>IMG_GD2_COMPRESSED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A type constant used by the <span class="function"><a href="function.imagegd2.html" class="function">imagegd2()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-effect-replace">
    <strong><code>IMG_EFFECT_REPLACE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-effect-alphablend">
    <strong><code>IMG_EFFECT_ALPHABLEND</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-effect-normal">
    <strong><code>IMG_EFFECT_NORMAL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-effect-overlay">
    <strong><code>IMG_EFFECT_OVERLAY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Alpha blending effect used by the <span class="function"><a href="function.imagelayereffect.html" class="function">imagelayereffect()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-negate">
    <strong><code>IMG_FILTER_NEGATE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-grayscale">
    <strong><code>IMG_FILTER_GRAYSCALE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-brightness">
    <strong><code>IMG_FILTER_BRIGHTNESS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-contrast">
    <strong><code>IMG_FILTER_CONTRAST</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-colorize">
    <strong><code>IMG_FILTER_COLORIZE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-edgedetect">
    <strong><code>IMG_FILTER_EDGEDETECT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-gaussian-blur">
    <strong><code>IMG_FILTER_GAUSSIAN_BLUR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-selective-blur">
    <strong><code>IMG_FILTER_SELECTIVE_BLUR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-emboss">
    <strong><code>IMG_FILTER_EMBOSS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-mean-removal">
    <strong><code>IMG_FILTER_MEAN_REMOVAL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-smooth">
    <strong><code>IMG_FILTER_SMOOTH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.img-filter-pixelate">
    <strong><code>IMG_FILTER_PIXELATE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Special GD filter used by the <span class="function"><a href="function.imagefilter.html" class="function">imagefilter()</a></span> function. 
     (Available as of PHP 5.3.0)
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-gif">
    <strong><code>IMAGETYPE_GIF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-jpeg">
    <strong><code>IMAGETYPE_JPEG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-jpeg2000">
    <strong><code>IMAGETYPE_JPEG2000</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-png">
    <strong><code>IMAGETYPE_PNG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-swf">
    <strong><code>IMAGETYPE_SWF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-psd">
    <strong><code>IMAGETYPE_PSD</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-bmp">
    <strong><code>IMAGETYPE_BMP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-wbmp">
    <strong><code>IMAGETYPE_WBMP</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-xbm">
    <strong><code>IMAGETYPE_XBM</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-tiff-ii">
    <strong><code>IMAGETYPE_TIFF_II</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-tiff-mm">
    <strong><code>IMAGETYPE_TIFF_MM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-iff">
    <strong><code>IMAGETYPE_IFF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-jb2">
    <strong><code>IMAGETYPE_JB2</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-jpc">
    <strong><code>IMAGETYPE_JPC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-jp2">
    <strong><code>IMAGETYPE_JP2</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-jpx">
    <strong><code>IMAGETYPE_JPX</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-swc">
    <strong><code>IMAGETYPE_SWC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
    </span>
   </dd>

  
  
   <dt id="constant.imagetype-ico">
    <strong><code>IMAGETYPE_ICO</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Image type constant used by the
     <span class="function"><a href="function.image-type-to-mime-type.html" class="function">image_type_to_mime_type()</a></span> and
     <span class="function"><a href="function.image-type-to-extension.html" class="function">image_type_to_extension()</a></span> functions.
     (Available as of PHP 5.3.0)
    </span>
   </dd>

  
  
   <dt id="constant.png-no-filter">
    <strong><code>PNG_NO_FILTER</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.png-filter-none">
    <strong><code>PNG_FILTER_NONE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.png-filter-sub">
    <strong><code>PNG_FILTER_SUB</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.png-filter-up">
    <strong><code>PNG_FILTER_UP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.png-filter-avg">
    <strong><code>PNG_FILTER_AVG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.png-filter-paeth">
    <strong><code>PNG_FILTER_PAETH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
    </span>
   </dd>

  
  
   <dt id="constant.png-all-filters">
    <strong><code>PNG_ALL_FILTERS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     A special PNG filter, used by the <span class="function"><a href="function.imagepng.html" class="function">imagepng()</a></span> function.
    </span>
   </dd>

  

  
   <dt id="constant.img-flip-vertical">
    <strong><code>IMG_FLIP_VERTICAL</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imageflip.html" class="function">imageflip()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-flip-horizontal">
    <strong><code>IMG_FLIP_HORIZONTAL</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imageflip.html" class="function">imageflip()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-flip-both">
    <strong><code>IMG_FLIP_BOTH</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imageflip.html" class="function">imageflip()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-bell">
    <strong><code>IMG_BELL</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-bessel">
    <strong><code>IMG_BESSEL</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-bilinear-fixed">
    <strong><code>IMG_BILINEAR_FIXED</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-bicubic">
    <strong><code>IMG_BICUBIC</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-bicubic-fixed">
    <strong><code>IMG_BICUBIC</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-blackman">
    <strong><code>IMG_BLACKMAN</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-box">
    <strong><code>IMG_BOX</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-bspline">
    <strong><code>IMG_BSPLINE</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-catmullrom">
    <strong><code>IMG_CATMULLROM</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-gaussian">
    <strong><code>IMG_GAUSSIAN</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-generalized-cubic">
    <strong><code>IMG_GENERALIZED_CUBIC</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-hermite">
    <strong><code>IMG_HERMITE</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-hamming">
    <strong><code>IMG_HAMMING</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-hanning">
    <strong><code>IMG_HANNING</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-mitchell">
    <strong><code>IMG_MITCHELL</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-power">
    <strong><code>IMG_POWER</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-quadratic">
    <strong><code>IMG_QUADRATIC</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-sinc">
    <strong><code>IMG_SINC</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-nearest-neighbour">
    <strong><code>IMG_NEAREST_NEIGHBOUR</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-weighted4">
    <strong><code>IMG_WEIGHTED4</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

  
   <dt id="constant.img-triangle">
    <strong><code>IMG_TRIANGLE</code></strong>
    (<span class="type"><a href="language.types.integer.html" class="type int">int</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used together with <span class="function"><a href="function.imagesetinterpolation.html" class="function">imagesetinterpolation()</a></span>, available as of PHP 5.5.0.
    </span>
   </dd>

  

 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="image.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="image.examples.html">范例</a></div>
 <div class="up"><a href="book.image.html">GD</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
